package gr.atc.epart;

import java.util.ArrayList;

import android.util.Pair;

import gr.atc.epart.SurveyQuestion.QuestionType;

public class SurveyMultipleSelectionQuestion extends SurveyQuestion
{

	private String _questionText;
	private ArrayList< Pair<String, SurveyLinkToModerator>>  _options; 
	
	public SurveyMultipleSelectionQuestion(String questionText)
	{
		super(SurveyQuestion.QuestionType.MultipleSelect);
		_questionText = questionText;
		_options = new ArrayList<Pair<String,SurveyLinkToModerator>>();
	}

	public String getQuestionText()
	{
		return _questionText;
	}

	public void addOption(String text,SurveyLinkToModerator link)
	{
		_options.add(new Pair<String, SurveyLinkToModerator>(text,link));
	}
	
	public int getNumberOfOptions()
	{
		return _options.size();
	}
	
	public Pair<String, SurveyLinkToModerator> getOption(int i)
	{
		return _options.get(i);
	}
}
